package com.eight.clienthome.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.eight.clienthome.dao.LinkDao;
import com.eight.clienthome.service.LinkService;
import com.eight.common.pojo.TbHeadNav;
import com.eight.common.pojo.TbLink;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.sound.sampled.Line;
import java.util.List;

/**
 * @author 向文豪
 * @program: eight-education-parent
 * @description:
 * @date 2023/6/1 20:38
 */
@Service
public class LinkServiceImpl implements LinkService {

    @Autowired
    private LinkDao linkDao;
    @Override
    public List<TbLink> findAll() {
        QueryWrapper<TbLink> wrapper = new QueryWrapper<>();
        wrapper.eq("is_disable",0);
        List<TbLink> tbLinks = linkDao.selectList(wrapper);
        return tbLinks;
    }
}
